import service from "@/requset/requset.js";


export function login(user) {
    return service({
        url: '/user/login',
        method: 'post',
        data: user
    })
}

export function register(user){
    return service({
        url: '/user/register',
        method: 'post',
        data: user
    })
}

export function setIp(data){
    return service({
        url: '/user/setIp',
        method: 'post',
        data: data
    })
}

export  function updateImgApi(img){
    return service({
        url:'/user/updateImg',
        params:{
            img:img
        }
    })
}
export  function authAdminApi(){
    return service({
        url:'/user/authAdmin',
    })
}